<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<c:choose>
<c:when test="${not empty setting.user}">
<%@include file="../../../common/headfiles-jquery.jsp"%>
		<c:set var="proceedParames"
			value="workflowId=${actionItem.workflowId}&actionId=${actionItem.actionId}&nextOwners[0].owner=${setting.user}&nextOwners[0].stepId=${actionItem.stepId}" />
		<script type="text/javascript">
   			var url = "../../../workflow/proceed/proceed!proceed";
	    	var ps = "${proceedParames}";
	    	doSubmit(url,ps,function(){
		   		window.opener.loadWork();
		   		//window.parent=null;
		  	 	window.close();
	    	});
   		</script>
</c:when>
<c:otherwise>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@include file="../../../common/headfiles-jquery.jsp"%>
<%@include file="../../../common/userutil.jsp"%>
<script type="text/javascript">
	var wfsetting = {
			"name":"${setting.id.name}",
			"stepId":"${setting.id.stepId}",
            "actionId":"${setting.id.actionId}"
	};
	var action = {
			"actionId":'${actionItem.actionId}',
			"stepId":'${actionItem.stepId}',
			"workflowId":'${actionItem.workflowId}',
			"username":""
	};
	
</script>


<script type="text/javascript"
			src="../../../scripts/apps/admin/form/show/saveform.js"></script>
		<link rel="stylesheet"
			href="${sbase}/scripts/SexyButtons/sexybuttons.css" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>选人并提交活动</title>
		<style type="text/css">
			.rightUsers {
				width: 500px;
				height: auto;
				border: #345 1px dotted;
				margin: 0 auto;
			}
		</style>
</head>
<body>

	<div class="rightUsers">
		<button class="sexybutton sexysimple sexylarge subwork">
			<span class="ok">提交公务</span>
		</button>
		<br />
		<ul id="usersTree" class="ztree"></ul>
		<button class="sexybutton sexysimple sexylarge subwork">
			<span class="ok">提交公务</span>
		</button>
	</div>
</body>
</html>

</c:otherwise>
</c:choose>